package com.qf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class TotalSales {
    /*产品id*/
    private int productId;
    /*用户姓名*/
    private String username;
    /*密码*/
    private String password;
    /*产品名字*/
    private String productName;
    /*产品单价*/
    private double productPrice;
    /*客户名称*/
    private String customerName;
    /*客户类型*/
    private String customerType;
    /*销售数量*/
    private int salesNum;
    /*销售总额*/
    private int salesTotal;
    /*店铺名*/
    private String storeName;
    /*销售人员*/
    private String salesName;
    /*销售国家*/
    private String salesState;
    /*销售时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date salesTime;

    public TotalSales(){

    }
    public TotalSales(int productId, String username, String password, String productName, double productPrice, String customerName, String customerType, int salesNum, int salesTotal, String storeName, String salesName, String salesState, Date salesTime) {
        this.productId = productId;
        this.username = username;
        this.password = password;
        this.productName = productName;
        this.productPrice = productPrice;
        this.customerName = customerName;
        this.customerType = customerType;
        this.salesNum = salesNum;
        this.salesTotal = salesTotal;
        this.storeName = storeName;
        this.salesName = salesName;
        this.salesState = salesState;
        this.salesTime = salesTime;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(double productPrice) {
        this.productPrice = productPrice;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerType() {
        return customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public int getSalesNum() {
        return salesNum;
    }

    public void setSalesNum(int salesNum) {
        this.salesNum = salesNum;
    }

    public int getSalesTotal() {
        return salesTotal;
    }

    public void setSalesTotal(int salesTotal) {
        this.salesTotal = salesTotal;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getSalesName() {
        return salesName;
    }

    public void setSalesName(String salesName) {
        this.salesName = salesName;
    }

    public String getSalesState() {
        return salesState;
    }

    public void setSalesState(String salesState) {
        this.salesState = salesState;
    }

    public Date getSalesTime() {
        return salesTime;
    }

    public void setSalesTime(Date salesTime) {
        this.salesTime = salesTime;
    }

    @Override
    public String toString() {
        return "TotalSales{" +
                "productId=" + productId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", productName='" + productName + '\'' +
                ", productPrice=" + productPrice +
                ", customerName='" + customerName + '\'' +
                ", customerType='" + customerType + '\'' +
                ", salesNum=" + salesNum +
                ", salesTotal=" + salesTotal +
                ", storeName='" + storeName + '\'' +
                ", salesName='" + salesName + '\'' +
                ", salesState='" + salesState + '\'' +
                ", salesTime=" + salesTime +
                '}';
    }
}
